<?php
class ORMv1user extends ORMBase {
  public function __construct() {
    parent::__construct('v1user');
  }

  public function __toEpObject($myManager, $epObject, $object) {
    $epObject->trackId = isset($object->trackId) ? $object->trackId : '';
    $epObject->account = isset($object->account) ? $object->account : '';
    $epObject->password = isset($object->password) ? $object->password : '';
    $epObject->name = isset($object->name) ? $object->name : '';
    $epObject->email = isset($object->email) ? $object->email : '';
    $epObject->type = isset($object->type) ? $object->type : '';
    $epObject->pEnabled = isset($object->pEnabled) ? $object->pEnabled : 0;
    $epObject->vEnabled = isset($object->vEnabled) ? $object->vEnabled : 0;
    $epObject->mEnabled = isset($object->mEnabled) ? $object->mEnabled : 0;
    $epObject->pWedding = isset($object->pWedding) ? $object->pWedding : 0;
    $epObject->pPrewedding = isset($object->pPrewedding) ? $object->pPrewedding : 0;
    $epObject->pPortrait = isset($object->pPortrait) ? $object->pPortrait : 0;
    $epObject->pEngagement = isset($object->pEngagement) ? $object->pEngagement : 0;
    $epObject->vWedding = isset($object->vWedding) ? $object->vWedding : 0;
    $epObject->vPrewedding = isset($object->vPrewedding) ? $object->vPrewedding : 0;
    $epObject->vPortrait = isset($object->vPortrait) ? $object->vPortrait : 0;
    $epObject->vEngagement = isset($object->vEngagement) ? $object->vEngagement : 0;
    $epObject->mStudio = isset($object->mStudio) ? $object->mStudio : 0;
    $epObject->mHouse = isset($object->mHouse) ? $object->mHouse : 0;
    $epObject->mFullDay = isset($object->mFullDay) ? $object->mFullDay : 0;
    $epObject->lEnabled = isset($object->lEnabled) ? $object->lEnabled : 0;
    $epObject->lightingRate = isset($object->lightingRate) ? $object->lightingRate : 0;
    $epObject->employmentType = isset($object->employmentType) ? $object->employmentType : 0;
    $epObject->yearlyRate = isset($object->yearlyRate) ? $object->yearlyRate : 0;
    $epObject->hourlyRate = isset($object->hourlyRate) ? $object->hourlyRate : 0;
    $epObject->commissionRate = isset($object->commissionRate) ? $object->commissionRate : 0;
    return $epObject;
  }

  public function __toObject($myManager, $epObject, $object) {
    $object->id = $epObject->oid;
    $object->trackId = $epObject->trackId;
    $object->account = $epObject->account;
    $object->password = $epObject->password;
    $object->name = $epObject->name;
    $object->email = $epObject->email;
    $object->type = $epObject->type;
    $object->pEnabled = $epObject->pEnabled;
    $object->vEnabled = $epObject->vEnabled;
    $object->mEnabled = $epObject->mEnabled;
    $object->pWedding = $epObject->pWedding;
    $object->pPrewedding = $epObject->pPrewedding;
    $object->pPortrait = $epObject->pPortrait;
    $object->pEngagement = $epObject->pEngagement;
    $object->vWedding = $epObject->vWedding;
    $object->vPrewedding = $epObject->vPrewedding;
    $object->vPortrait = $epObject->vPortrait;
    $object->vEngagement = $epObject->vEngagement;
    $object->mStudio = $epObject->mStudio;
    $object->mHouse = $epObject->mHouse;
    $object->mFullDay = $epObject->mFullDay;
    $object->lEnabled = $epObject->lEnabled;
    $object->lightingRate = $epObject->lightingRate;
    $object->employmentType = $epObject->employmentType;
    $object->yearlyRate = $epObject->yearlyRate;
    $object->hourlyRate = $epObject->hourlyRate;
    $object->commissionRate = $epObject->commissionRate;
    return $object;
  }
}
?>
